<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    // 无参数 无返回值 普通函数
    function f1(){
        console.log('xiaoyi')
    }
    f1(); //调用

    function f2(a){
        console.log(a);
    }
    f2(100); //调用

    function f3(a,b){
        console.log(a+b);
        console.log(a);
        console.log(b);
    }

    f3(1,2);
    f3(1);
    f3(11,22,3);

    function f4(){
        console.log(arguments);
    }
    f4(1,2);
    f4(1);
    f4(11,22,3);

    function f5(){
        return 1+2;
    }

    let res = f5();
    console.log(res);

    let f6 =function (){return 666;}
   console.log(f6());

let f7 = function (){ return 777}
    console.log(f7());

let f8 = new Function("name","age","return name+':'+age")
   console.log(f8("shenge",19))
</script>
</body>
</html>